Skip to content

Conversation

@viktorvaladi
Copy link
Contributor

add to values etc

@viktorvaladi viktorvaladi requested a review from Wrede April 23, 2025 14:37
Copy link
Member

@Wrede Wrede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

however, @stefanhellander should approve as well. This fix will still allow admins to create more than 1 project, and make user exceptions?

@viktorvaladi
Copy link
Contributor Author

however, @stefanhellander should approve as well. This fix will still allow admins to create more than 1 project, and make user exceptions?

The code for that is in the studio repostiory. If "has_perm = user.has_perm("projects.add_project")" then they can do more than one project. Not sure if admins have that but they should.

  • see line 67 in studio repo on projects.models

Copy link
Contributor

@stefanhellander stefanhellander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, however, sometime in the future it would probably be useful to be able to set number of projects on a per-user basis from the admin interface, but that would be overkill right now.

@Wrede Wrede merged commit 15b0151 into main Apr 28, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants